<!-- Begin one column window -->
<div class="onecolumn">
    <div class="header">
        <span style="font-weight: bold; text-align: center; color: red;">Danh sách tài liệu đang mượn</span>
    </div>
    <br class="clear"/>
    <div class="content">
        <!--<form id="abc" name="abc" action="" method="post">-->
            <table class="data" width="100%" cellpadding="0" cellspacing="0">
                <thead>
                    <tr>
                        <th style="width:6%">STT</th>
                        <th style="width:14%">Mã tài liệu</th>
                        <th style="width:30%">Mô tả TL</th>
                        <th style="width:30%">Người mượn</th>
                        <th style="width:10%">Ngày mượn</th>
                        <th style="width:10%">Cán bộ TV</th>
                    </tr>
                </thead>
                <tbody> 
                    <?php $i = 1; ?>
                    <?php foreach ($paginator as $row) : ?>
                        <tr>
                            <td><?php echo $this->escapeHtml($i++); ?></td>
                            <td><?php echo $this->escapeHtml($row->bookBarcode.'-'.$row->serial); ?></td>
                            <td><?php echo $this->escapeHtml($row->title.'Tác giả: '.$allAuthor[$row->bookBarcode].' / Số trang: ' . $row->numberOfPages . ' / ' . $row->publisher . ' / Giá: ' . $row->price)?></td>
                            <td><?php echo $this->escapeHtml($row->cardBarcode.'/ '.$row->fullName.'/ '.$row->className.'-'.$row->facultyName); ?></td>
                            <td>
                                <?php 
                                $dateBorrow = explode('-', $row->dateBorrow);
                                echo $this->escapeHtml($dateBorrow[2].'-'.$dateBorrow[1].'-'.$dateBorrow[0]); ?>
                            </td>
                            <td><?php echo $this->escapeHtml($row->librarianName); ?></td>
                        </tr>
                    <?php endforeach; ?>
                </tbody>
            </table>
            <?php
            // add at the end of the file after the table
            echo $this->paginationControl(
                    // the paginator object
                    $this->paginator,
                    // the scrolling style; see http://zf2.readthedocs.org/en/release-2.1.4/modules/zend.paginator.usage.html#rendering-pages-with-view-scripts
                    'sliding',
                    // the partial to use to render the control
                    array('partial/paginator.phtml', 'Admin'),
                    // the route to link to when a user clicks a control link
                    array(
                'route' => 'list-user'
                    )
            );
            ?>
        <!--</form>-->
    </div>
</div>
<!-- End one column window -->